#ifndef CODE_MOTOR_H_
#define CODE_MOTOR_H_
#include "zf_common_headfile.h"
extern int32 bldc_b_speed, bldc_f_speed;
extern float bdc_speed,bdc_speed1, bdc_speed_max;
extern float error_prouette;
void SET_wushua_PWM(int16 zuo,int16 you);//无刷

void SET_SERVO_PWM(int32 ERROR);

void STOP_BLDC(uint8 STOP);

#define BDC_PWM_PIN ATOM0_CH1_P21_3     // 定义有刷电机PWM引脚
void motor_int(void);//有刷电机初始化
void SET_BDC_PWM(int32 ERROR);//有刷

void yaw_pirouette(float yaw_agree);

#endif /* CODE_MOTOR_H_ */
